<?php $pageTitle = '添加管理员';?>
<?php include 'header.tpl.php';?>
<form action="<?php echo $short_router;?>/add" method="post">
<ul>
<li>
<label for="uname">用户名</label>
	<input type="text" name="uname" value="<?php echo $arr['uname'];?>" />
</li><li>
<label for="passwd">密码</label>
	<input type="password" name="passwd" />
</li><li>
<label for="passwd2">重复密码</label>
	<input type="password" name="passwd2" />
</li><li>
<label for="alias">用户称呼</label>
	<input type="text" name="alias" value="<?php echo $arr['alias'];?>" />
</li><li>
<label for="group">用户组</label>
	<?php foreach ($groups as $key=>$group):?>
	<input type="radio" name="group" <?php if((!isset($arr['group']) && $key=='admin') || ($key==$arr['group'])):?>checked="checked"<?php endif;?> value="<?php echo $key;?>"><?php echo $group;?>
	<?php endforeach;?>
</li>
<li>
<label for="permission">权限</label>
	<input type="checkbox" name="permission[]" value="1" />
</li>
<li>
<input type="hidden" name="act" value="<?php echo isset($act) ? $act : 'add';?>" />
<input type="hidden" name="uid" value="<?php echo $arr['id'];?>" />
<button type="submit">提交</button>
<button type="reset">清空</button>
</li>
</form>

<?php include 'footer.tpl.php'?>